// @ts-ignore
import Router from 'koa-router'
import MockController from '../controller/Mock.Controller'
import Tool from '../until/tool'
let tool = new Tool()
let router = new Router({prefix:"/mock"})

/**
 * @swagger
 *  tags: 
 *    name: mock
 *    description: 本地mock数据
 */

/**
 * @swagger
 *  /mock/getData:
 *   get:
 *    tags: [mock]
 *    summary: 获取传感器得数据
 *    responses:
 *      200:
 *       description: "获取数据成功"
 */
router.get("/getData",MockController.getData) // 获取传感器的数据



export default router